from flask import jsonify

from src.const.code import Code
from src.http.specimen import BlueprintHttpSpecimen
from src.util.function import app_path, src_path, static_path
from src.util.rs import Rs


@BlueprintHttpSpecimen.route('/')
def index():
    return jsonify(Rs(
        Code.OK,
        Code.message(Code.OK),
        {
            "项目根目录": app_path(),
            "项目src目录": src_path(),
            "项目static目录": static_path(),
        }
    ).to_dict())
